<template>
  <div>
    <!-- banner -->
    <div class="block">
      <el-carousel height="200px">
        <el-carousel-item v-for="item in imagebox" :key="'banner' + item.id">
          <img :src="item.idView" class="image" />
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      imagebox: [
        { id: 0, idView: require("../../mipmap/image/banner01.png") },
        { id: 1, idView: require("../../mipmap/image/banner02.jpg") },
      ],

    };
  },

  mounted() {
    this.bannerImg = { banner01: "../../mipmap/image/banner01.png" };

  },
  methods: {
    toShop(id) {
      this.$router.push('/shopdetails/' + id)
    }
  }
};
</script>

<style lang="scss" scoped>
.block {
  margin: 0 5px;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

img {
  /*设置图片宽度和浏览器宽度一致*/
  width: 100%;
  height: inherit;
}

.introduce {
  width: 805px;
  height: 250px;
  margin: 50px auto 0px;
  color: #475669;
  box-shadow: 1px 1px 10px goldenrod;
  padding: 10px;
  display: flex;
  box-sizing: border-box;

  .left {
    // width: 200px;
    height: 250px;
    text-align: center;

    img {
      height: 230px;
    }
  }

  .right {
    flex: 1;
    margin-left: 20px;
    padding-top: 20px;

    p {
      margin-top: 30px;
      color: red;
      font-weight: 700;
    }

    span {
      font-size: 16px;
      line-height: 25px;
    }

    h3 {
      margin-bottom: 10px;
      color: rgb(131, 86, 86);
    }
  }
}

.shop_project {
  width: 1100px;
  margin: 0 auto;
  padding-top: 5px;
  height: 1150px;
}
</style>









